//
//  Constants.m
//  ubereasycontrol
//
//  Created by devpltc on 15/9/26.
//  Copyright © 2015年 devpltc. All rights reserved.
//

#import "Constants.h"
/*
 * Http请求数据协议头
 */
NSString * const HTTPHEAD       =   @"http://";
NSString * const CLOUDPATH      =   @"/PLTC_adv_1";
NSString * const APPPATH        =   @"/app/appPond.jsp?";
NSString * const LISTROOM       =   @"/listRoom?";
NSString * const LISTROOMRCU    =   @"/listRoomRcu?";
NSString * const LISTLIGHTMODE  =   @"/listLightMode?";
NSString * const UPDATERCUSTATU =   @"/updateRcuStatu?";
NSString * const LISTDEVICESTATU=   @"/listDeviceStatu?";
NSString * const LISTTVSTATION  =   @"/listTvStation?";
NSString * const LISTLIVESHOW   =   @"/listLiveShow?";
NSString * const LISTMOVIE      =   @"/listMovie?";
NSString * const GETIMAGES      =   @"/getImage?";
NSString * const GETAIRCONFIG   =   @"/getAirConfig?";
NSString * const GETWEATHERBY   =   @"/getWeatherByPhone?";
NSString * const GETUSERINFO    =   @"/getRoomUserInfoByPhone?";
NSString * const GETIMINFO      =   @"/getim?";
NSString * const ID             =   @"id";
NSString * const ROOM           =   @"room";
NSString * const ROOMNUM        =   @"roomNum";
NSString * const TRANIDBIG      =   @"tranId";
NSString * const TRANID         =   @"tranid";
NSString * const SERVICEIP      =   @"serviceIp";
NSString * const CLOUDIP        =   @"cloudIp";
NSString * const PORT           =   @"port";
NSString * const TYPE           =   @"type";
NSString * const DATA           =   @"data";
NSString * const ADDRESULT      =   @"&source=android-apps";
NSString * const HOTELINFO      =   @"hotelInfo";
NSString * const CHECKINFO      =   @"checkInfo";
NSString * const IPHONE         =   @"phone";
NSString * const CITY           =   @"city";
NSString * const NSZERO         =   @"0";

/*
 控制系列
 movie-13  播放电影，13指代电影id
 control-0 播放暂停
 control-1 电影快进
 control-2 电影倒退
 back-0    电影返回
 sound-+   增加音量
 sound--   减少音量
 sound-0   静音
 tv-1      电视跳台，1指代对应电视台号
 */
NSString * const CONTROLTV          =   @"/controlTv?";
NSString * const CONTROLMOVIEDATA   =   @"movie-";
NSString * const CONTROLTVDATA      =   @"tv-";
NSString * const CONTROLACTION      =   @"control-";
NSString * const CONTROLSOUND       =   @"sound-";
NSString * const CONTROLMOVIEBACK   =   @"back-0";
NSString * const CONTROLTVBACK      =   @"back-1";
/**
 * 入住信息
 **/
//{'name':'张凤通','checkintime':'1443089317000','phone':'17731739620','roomtype':'标准间','cost':'0','depostit':'0','charge':'0'}
NSString * const CHECKINNAME        =   @"name";
NSString * const CHECKINTIME        =   @"checkintime";
NSString * const CHECKINPHONENUM    =   @"phone";
NSString * const CHECKINROOMTYPE    =   @"roomtype";
NSString * const CHECKINCOST        =   @"cost";
NSString * const CHECKINDEPOSTIT    =   @"depostit";
NSString * const CHECKINCHARGE      =   @"charge";

/*
 * 通讯端口
 */
int HTTPPORT                        =   8080;
int WEBSOCKETPORT                   =   9696;


/*
 * 设备类型
 */
int LIGHTTYPE                       =   0;
int WEATHERTYPE                     =   1;
int CURTAINTYPE                     =   2;
int AIRTYPE                         =   1;


/*
 * 提示信息
 */
NSString * const CONNECTERROR       =   @"网络通讯错误 ";
NSString * const NOTOPENFUNCTION    =   @"此功能暂时未开放 ";
NSString * const NOTBILDERROOM      =   @"请先绑定房间 ";

/*
 * http通讯添加手机设备类型
 */
NSString * const  PMANUFACTUER      =   @"&pmanufactuer=China";
NSString * const  PMODEL            =   @"&pmodel=Iphone";
NSString * const  PID               =   @"&pid=110";

NSString * const DEVICEIPHONE       =   @"pmanufactuer=China&pmodel=Iphone&pid=110&";

/*
 * 获取IM账户
 */
NSString * const IMG                =   @"img";
NSString * const GETIMSERVER        =   @"/getimserver?";
NSString * const GETIM              =   @"/getim?";

/**
 *  测试服务器IP
 */

//NSString * const GETIMSERVERIP        =@"172.16.1.94";

@implementation Constants

@end
